﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Microsoft.Web.Mvc"%>
<asp:Content ID="indexHead" ContentPlaceHolderID="head" runat="server">
    <title>Danh Sách Sách Ưu Thích</title>
</asp:Content>

<asp:Content ID="indexContentLeft" ContentPlaceHolderID="left_content" runat="server">
          <div class="title"><span class="title_icon"><img title="" alt="" src="/content/images/bullet1.gif"></span>Danh Sách Sách Ưu Thích</div>
           
           <div class="new_products">
                 <% string[][] resultRelative = (string[][])ViewData["resultBooks"];
                               if (resultRelative[0] != null)
                               {
                                   foreach (string[] row in resultRelative)
                                   {
                                       if (row == null) break;%>
                                <div class="new_prod_box">
                                    <a href="/book/detail?id=<%= row[6]%>"
                                                title="<div style='width:300px'>
					                            <div style='float:left;margin-left:5px;'>
						                            <center><img onerror=this.src='/content/images/no_image.jpg' width='98' height='140' src='<%= row[7]%>'></center>
					                            </div>
					                            <div style='float:left;margin-left:25px'>
					                                <div class='tt_name'>
						                                <%= row[1]%>
					                                </div>
					                                <div class='tt_detail'>
						                                <b>Mã Sách : </b><%= row[0]%> <br/><br/>
						                                <b>Tác Giả : </b><%= row[2]%> <br/><br/>
						                                <b>Giá Bán : </b><%= Html.Encode(row[3])%> <br/><br/>
						                                <b>Giá Thuê : </b><%= Html.Encode(row[4])%> <br/><br/>
						                                <b>Ngày Cập Nhật : </b><%= Html.Encode(row[8])%><br/><br/>
					                                </div>
					                            </div>
					                            <div style='clear:both;'></div>	
				                            </div>">
				                            <%= row[1]%>
				                      </a>
                                    <div class="new_prod_bg">
                                    <a href="/book/detail?id=<%= row[6]%>"><img onerror=this.src='/content/images/no_image.jpg' height="90" width="60" src="<%= row[7]%>"class="thumb" border="0" /></a>
                                    </div>           
                                </div>                    
                            <% }
                               }
                               else
                               { %>
                                <br />&nbsp;&nbsp;&nbsp;&nbsp;Không có sách trong danh muc ưu thích 
                              <% }%>
                            <div class="clear"></div>
            
             <div class="pagination">
                <%= ViewData["pagination"]%>
            </div> 
             

         </div> 
 
        <div class="clear"></div>
        <script type="text/javascript" src="/scripts/jquery.min.js"></script>
</asp:Content>

<asp:Content ID="indexContentRight" ContentPlaceHolderID="right_content" runat="server">
   <% Html.RenderAction("index","sidebar"); %>
</asp:Content>
